/// <reference path="../../Definitions/_3rd_part/jquery.d.ts" />

/// <reference path="../../Definitions/_prod/Office.d.ts" />

class App {
    initialize() {
        $('body').append(
            '<div id="notification-message">' +
            '<div class="padding">' +
            '<div id="notification-message-close"></div>' +
            '<div id="notification-message-header"></div>' +
            '<div id="notification-message-body"></div>' +
            '</div>' +
            '</div>');

        $('#notification-message-close').click(function () {
            $('#notification-message').hide();
        });
    }

    showNotification(header: string, text: string) {
        $('#notification-message-header').text(header);
        $('#notification-message-body').text(text);
        $('#notification-message').slideDown('fast');
    }
}
